package cn.dapeng.designPatterns.observer.t3;

import cn.dapeng.designPatterns.observer.t2.LotteryResult;

public class Client {

    public static void main(String[] args) {
        LotteryService lotteryService = new LotteryServiceImpl();
        LotteryResult result = lotteryService.lottery("13579246810101010");
        System.out.println(result);

        LotteryService ls = new LotteryServiceImpl();
        LotteryResult lotteryResult = ls.lotteryAndMsg("215673512673512736125763");
        System.out.println(lotteryResult);
    }
}
